FROM frolvlad/alpine-java:jdk8.202.08-slim

COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas


LABEL author=yangxingyao
LABEL description=后端管理
LABEL version=1.0

WORKDIR /root

ARG JAR_FILE

# 将dockerfile所在目录下的 xingchen-admin.jar 复制到 /root下面， app.jar 是相对于workdir的路径
ADD xingchen-admin.jar app.jar

#EXPOSE 9091 19091

ENV JVM_PARAM=""
ENV JAVA_PARAM=""

ENTRYPOINT java ${JVM_PARAM} -jar app.jar ${JAVA_PARAM}